package com.javasm.mb_store_api_final.sys_control.usercontrol.authority.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.javasm.mb_store_api_final.sys_control.usercontrol.authority.entity.Authority;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * (Authority)表数据库访问层
 *
 * @author makejava
 * @since 2024-08-05 15:01:14
 */
public interface AuthorityDao extends BaseMapper<Authority> {


    @Select("SELECT authority.* FROM authority , rel_pos_auth WHERE rel_pos_auth.aid=authority.aid and rel_pos_auth.pos_id=#{posId}")
    List<Authority> listAuthorityByPosId(String posId);
}

